package com.kindergarten.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.kindergarten.utils.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author bruce
 * @since 2022-10-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Food extends PagePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 星期
     */
    private String week;

    /**
     * 早餐备注
     */
    private String breakfastDesc;

    /**
     * 早餐
     */
    private String breakfast;

    /**
     * 午餐备注
     */
    private String lunchDesc;

    /**
     * 午餐
     */
    private String lunch;

    /**
     * 晚餐
     */
    private String dinner;

    /**
     * 晚餐备注
     */
    private String dinnerDesc;

    /**
     * 创建时间
     */
    private String createTime= DateUtils.now();

    /**
     * 是否删除 1删除 0未删除
     */
    private Integer del=0;


    //扩展属性
    @TableField(exist = false)
    private String startTime;

    //扩展属性
    @TableField(exist = false)
    private String endTime;

}
